package shin.blog.web.pojo;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Bloguser {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long userId;
	
	@Persistent
	private int identity;
	
	@Persistent
	private String username;
	
	@Persistent
	private String password;
	
	@Persistent
	private String nickname;
	
	@Persistent
	private String email;
	
	@Persistent
	private String intro;
	
	@Persistent
	private int blogsCount;
	
	@Persistent
	private int tagsCount;
	
	@Persistent
	private int categoriesCount;
	
	@Persistent
	private int remarksCount;
	
	@Persistent
	private Date actionAt;

	@Persistent
	private Date loginAt;
	
	@Persistent
	private String loginIp;
	
	@Persistent
	private Date logoutAt;
	
	@Persistent
	private Date createAt;

	@Persistent
	private Date updateAt;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public int getIdentity() {
		return identity;
	}

	public void setIdentity(int identity) {
		this.identity = identity;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public int getBlogsCount() {
		return blogsCount;
	}

	public void setBlogsCount(int blogsCount) {
		this.blogsCount = blogsCount;
	}

	public int getTagsCount() {
		return tagsCount;
	}

	public void setTagsCount(int tagsCount) {
		this.tagsCount = tagsCount;
	}

	public int getCategoriesCount() {
		return categoriesCount;
	}

	public void setCategoriesCount(int categoriesCount) {
		this.categoriesCount = categoriesCount;
	}

	public int getRemarksCount() {
		return remarksCount;
	}

	public void setRemarksCount(int remarksCount) {
		this.remarksCount = remarksCount;
	}

	public Date getActionAt() {
		return actionAt;
	}

	public void setActionAt(Date actionAt) {
		this.actionAt = actionAt;
	}

	public Date getLoginAt() {
		return loginAt;
	}

	public void setLoginAt(Date loginAt) {
		this.loginAt = loginAt;
	}

	public Date getLogoutAt() {
		return logoutAt;
	}

	public void setLogoutAt(Date logoutAt) {
		this.logoutAt = logoutAt;
	}

	public Date getCreateAt() {
		return createAt;
	}

	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}

	public Date getUpdateAt() {
		return updateAt;
	}

	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	
	
}
